<fieldset><legend>设置所有者</legend>
<span style="color:#ccc">设置您推荐的物的所有者&nbsp;&nbsp;<a href="{$checkdiggedlinkurl}" target="_blank" style="color:#000;display:none">查看推荐</a></span>
<form action="" method="POST">
	所有者：<input type="text" name="usernames" id="usernames" value="{$usernames}" >
	<input type="button" onclick="this.form.page.value=1;this.form.action.value='searchuser';this.form.submit();" value="搜索" class="log2" align="right">

	<br><span id="nouser" style="color:red">{$nouserhint}</span>
	<br>
	<div id="searchresult" style="display:{if $noresult == 'true'}none{/if}">
		<table  cellpadding="1" border="0" width="100%">
			<tr style="background:#EEEEEA;" ><td>用户</td><td>是否所有者</td></tr>
			{section name=nr loop=$userlist}
			<tr >	
				<td style="border-bottom:1px solid #ccc;"><a href = "user.php?login={$userlist[nr].user_login}" target="_blank"><img src="{$userlist[nr].Avatar}" align="absmiddle"/> {$userlist[nr].user_names}</a></td>
				<td style="border-bottom:1px solid #ccc;"><input type="button" value="是:)" id="reco" name="reco" style="text-decoration:none;background:#fff;border:1px solid #ccc;margin-right:1px;padding:2px 5px;color:#774525;" onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" onclick="this.form.action.value = 'addowner';this.form.owner.value = {$userlist[nr].user_id};this.form.submit();" /></td>
			</tr>
			{/section}
		</table>

		<input type="hidden" id="cur_page" name="cur_page" value={$cur_page} />
		<input type="hidden" id="page" name="page" value={$cur_page} />
		<input type="hidden" id="action" name="action" value="searchuser" />
		<input type="hidden" name="diggedlinkid" id="diggedlinkid" value="{$diggedlinkid}">
		<input type="hidden" name="checkdiggedlinkurl" id="checkdiggedlinkurl" value="{$checkdiggedlinkurl}">
		<input type="hidden" name="createownerurl" id="createownerurl" value="{$createownerurl}">
		<input type="hidden" name="owner" id="owner" value=0>
		<input type="hidden" name="phase" value=2>
		<input type="hidden" id="group" name="group" value={$group} />

{php} 
Global $db, $main_smarty, $rows, $top_users_size, $offset;
submit_user_do_pages($rows, $top_users_size, ''); 
{/php}
</div><!--this </div>is for the <div> from submit_user_do_pages()-->
</div>

	<div id="recouser" style="display:{if $norecouser == 'true'}none{/if}">
		<span style="color:#000">您推荐过的人</span><br>
		<table  cellpadding="1" border="0" width="100%">
			<tr style="background:#EEEEEA;" ><td>用户</td><td>是否所有者</td></tr>
			{section name=nr loop=$reco_userlist}
			<tr >	
				<td style="border-bottom:1px solid #ccc;"><a href = "user.php?login={$reco_userlist[nr].user_login}" target="_blank"><img src="{$reco_userlist[nr].Avatar}" align="absmiddle"/> {$reco_userlist[nr].user_names}</a></td>
				<td style="border-bottom:1px solid #ccc;"><input type="button" value="是:)" id="reco2" name="reco2" style="text-decoration:none;background:#fff;border:1px solid #ccc;margin-right:1px;padding:2px 5px;color:#774525;" onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" onclick="this.form.action.value = 'addowner';this.form.owner.value = {$reco_userlist[nr].user_id};this.form.submit();" /></td>
			</tr>
			{/section}
		</table>

		<input type="hidden" id="reco_cur_page" name="reco_cur_page" value={$reco_cur_page} />
		<input type="hidden" id="reco_page" name="reco_page" value={$reco_cur_page} />
		<input type="hidden" id="norecouser" name="norecouser" value={$norecouser} />
{php} 
Global $db, $main_smarty, $reco_rows, $top_users_size, $offset;
reco_do_pages($reco_rows, $top_users_size, ''); 
{/php}
</div>
	</div><!--//end recouser div-->
	<br>
	<div id="generalmenu" class="pagination"><p style="text-align:left">
		<input type="button" onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" onclick="window.location='{$createownerurl}';" value="系统中没有所有者，我要推荐他（她）" style="width:320px;text-decoration:none;background:#fff;border:1px solid #ccc;margin-right:1px;padding:2px 5px;color:#774525" align="right"  /> 
		<input onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" style="text-decoration:none;background:#fff;border:1px solid #ccc;margin-right:1px;padding:2px 5px;color:#774525" align="right" type="button" onclick="window.location='{$checkdiggedlinkurl}';" id="noowner" name="noowner" value="我不知道所有者，不设置">
		<input onmouseover="this.style.background='#774525';this.style.color='#fff';" onmouseout="this.style.background='#fff';this.style.color='#774525';" style="text-decoration:none;background:#fff;border:1px solid #ccc;margin-right:1px;padding:2px 5px;color:#774525" align="right" type="button" onclick="window.open('{$checkdiggedlinkurl}');" id="check" name="check" value="查看推荐">
	</div>

</fieldset>
</form>
